﻿namespace PlaylistCopy.Services.Impl
{
    using System.IO;
    using CuttingEdge.Conditions;

    internal class DirectoryService : IDirectoryService
    {
        public bool DirectoryExist(string path)
        {
            Condition.Requires(path, "path").IsNotNullOrWhiteSpace();

            return Directory.Exists(path);
        }

        public void CreateDirectory(string path)
        {
            Condition.Requires(path, "path").IsNotNullOrWhiteSpace();

            Directory.CreateDirectory(path);
        }
    }
}
